package com.sq.partner.manager.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.ActirationCardReportDao;
import com.sq.partner.manager.mybatis.model.ActirationCardDifinition;
import com.sq.partner.manager.mybatis.model.ActirationCardReport;


/**
 *
 * @author zsm 2018年7月24日
 *
 */
@Repository
public class ActirationCardReportDaoImpl extends BaseDaoImpl implements ActirationCardReportDao{



	@Override
	public Integer queryForCardReportCount(Map<String, Object> map)
			throws Exception {
		return (Integer) this.query("queryForCardReportCount", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<ActirationCardDifinition> queryForCardReportPage(
			Map<String, Object> map) throws Exception {
	
		return (List<ActirationCardDifinition>)this.queryList("queryForCardReportPage", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<ActirationCardReport> queryDataForReportExcel(
			Map<String, Object> map) throws Exception {
		
		return (List<ActirationCardReport>)this.queryList("queryDataForReportExcel", map);
	}

	@Override
	public Integer queryCountForDetail(Map<String, Object> map)
			throws Exception {
		
		return (Integer) this.query("queryCountForDetail", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<ActirationCardReport> queryPageForDetail(
			Map<String, Object> map) throws Exception {
		
		return (List<ActirationCardReport>)this.queryList("queryPageForDetail", map);
	}

	@Override
	public Integer queryDataCount(Map<String, Object> map) throws Exception {
		
		return (Integer) this.query("queryDataCount", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<ActirationCardReport> queryDataPage(Map<String, Object> map)
			throws Exception {
		
		return (List<ActirationCardReport>)this.queryList("queryDataPage", map);
	}

}
